Skip to content

[CI] Fix setuptools pkg_resources Bug for PR GPU Tests#13132

Merged
sayakpaul merged 1 commit intomainfrom
ci-fix-pkg-resources-2
Feb 13, 2026
Merged

[CI] Fix setuptools pkg_resources Bug for PR GPU Tests#13132
sayakpaul merged 1 commit intomainfrom
ci-fix-pkg-resources-2

Conversation

@dg845
Copy link
Collaborator

@dg845 dg845 commented Feb 13, 2026

What does this PR do?

This PR is a follow-up to #13129 which attempts to fix the same error for the pr_tests_gpu.yml workflow, which performs GPU tests for PRs.

The fix is currently the same as in the previous PR, but I'm not sure how to confirm that the previous fix is indeed working - I manually ran push_tests.yml in https://github.com/huggingface/diffusers/actions/runs/21971315738 on current main (5f3ea22) with that PR merged and it looks like Torch CUDA Tests (others) still has the same errors (https://github.com/huggingface/diffusers/actions/runs/21971315738/job/63473305519):

 =========================== short test summary info ============================
FAILED tests/others/test_dependencies.py::DependencyTester::test_backend_registration - RuntimeError: Failed to import diffusers.pipelines.stable_diffusion_k_diffusion.pipeline_stable_diffusion_k_diffusion because of the following error (look up to see its traceback):
No module named 'pkg_resources'
FAILED tests/others/test_dependencies.py::DependencyTester::test_pipeline_imports - RuntimeError: Failed to import diffusers.pipelines.stable_diffusion_k_diffusion.pipeline_stable_diffusion_k_diffusion because of the following error (look up to see its traceback):
No module named 'pkg_resources'
============ 2 failed, 69 passed, 11 skipped, 14 warnings in 21.42s ============

I think the fix is theoretically correct (assuming no mistakes or misunderstandings) but it seems like it might not have worked.

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@sayakpaul
@DN6

@dg845
Copy link
Collaborator Author

dg845 commented Feb 13, 2026

I tried a manual run of pr_tests_gpu.yml on this PR (4280690) at https://github.com/huggingface/diffusers/actions/runs/21972532687 and it looks like the current fix didn't solve the issue (https://github.com/huggingface/diffusers/actions/runs/21972532687/job/63477079625):

=========================== short test summary info ============================
FAILED tests/others/test_dependencies.py::DependencyTester::test_backend_registration - RuntimeError: Failed to import diffusers.pipelines.stable_diffusion_k_diffusion.pipeline_stable_diffusion_k_diffusion because of the following error (look up to see its traceback):
No module named 'pkg_resources'
FAILED tests/others/test_dependencies.py::DependencyTester::test_pipeline_imports - RuntimeError: Failed to import diffusers.pipelines.stable_diffusion_k_diffusion.pipeline_stable_diffusion_k_diffusion because of the following error (look up to see its traceback):
No module named 'pkg_resources'
============ 2 failed, 69 passed, 11 skipped, 14 warnings in 19.12s ============

So the current fix probably isn't working?

Copy link
Member

@sayakpaul sayakpaul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@sayakpaul sayakpaul merged commit 277e305 into main Feb 13, 2026
37 of 40 checks passed
@sayakpaul sayakpaul deleted the ci-fix-pkg-resources-2 branch February 13, 2026 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants